﻿import { mapInitOptions } from './utils/mapBaseOptions'
import { deepMerge } from '@/utils'
const useChinaMapChartOptions = (data, config, systemConfig) => {
  const { t } = useI18n() // 国际化
  const initOptions: any = mapInitOptions(data, config, systemConfig)
  const chinaMapBaseOptions = {
    visualMap: {
      inverse: false,
      text: [t('chart', 'count'), t('chart', 'low')]
    }
  }
  const chinaMapInitOptions = deepMerge(initOptions, chinaMapBaseOptions)
  return {
    chinaMapInitOptions
  }
}
export default useChinaMapChartOptions
